
/*
 *   Copyright (C) 2020 ZPD Ltd. All rights reserved.
 *   
 *   FileName:cglog.h
 *
 *   Author:LiuHongliang
 *
 *   Create:2020年06月10日
 *
 *   Brief:
 *
 */
#ifndef _CGLOG_H_
#define _CGLOG_H_

#ifdef __cplusplus
extern "C" {
#endif

enum{
    CGLOG_INFO = 0,
    CGLOG_WARNING,
    CGLOG_ERROR,
    CGLOG_FATAL,
    CCLOG_LEVEL_NUM
};

void cglog_exit(void);
void cglog_log(char *log, int level);
void cglog_init(char *log_path, char *fname_ext, int max_log_size_MB, int cleaner_day);

#ifdef __cplusplus
}
#endif

#endif //CGLOG_H_
